package com.zhangyu.shadow.repair.delegate.history.detail;

import com.zhangyu.shadow.repair.base.IStringDataConvert;
import com.zhangyu.shadow.repair.delegate.bean.HistoryDataBean;

import io.reactivex.disposables.Disposable;
import st.lib.base.delegate.mvp.BaseModel;
import st.lib.base.delegate.mvp.BasePresenter;
import st.lib.base.delegate.mvp.BaseView;
import st.lib.base.net.callback.IError;

/**
 * @author zhangyu
 * @date 2018/12/4
 */

public interface HistoryDetailContract {
    interface View extends BaseView {
        void showHistoryList(HistoryDataBean bean);
    }

    interface Model extends BaseModel {
        Disposable getHistoryData(String id,
                                  String type,
                                  IStringDataConvert<HistoryDataBean> success,
                                  IError error);
    }

    abstract class Presenter extends BasePresenter {

        abstract void getHistoryData(String id,String type);
    }
}
